import { PolygonNode, PolygonNodeModel } from "@logicflow/core";
import {shapeBorderColor} from "../../config";
import {NodeClassType} from "../../util/types";

class LCondition extends PolygonNode {
}

// 提供节点的属性
class KConditionModel extends PolygonNodeModel {
  getNodeStyle() {
    const style = super.getNodeStyle();
    style.stroke = shapeBorderColor;
    return style;
  }
}

export default<NodeClassType> {
  type: "LCondition",
  view: LCondition,
  model: KConditionModel,
  text: '条件',
  icon: 'condition',
  order: 1,
  properties: {}
}
